package com.googlecode.quillen.repository;

import com.googlecode.quillen.domain.ObjectStorageException;

/**
 * Created by IntelliJ IDEA.
 * User: greg
 * Date: Dec 5, 2008
 * Time: 5:23:47 PM
 */
public interface ObjectStorage
{
    void createBucket(String bucket) throws ObjectStorageException;

    void deleteBucket(String bucket) throws ObjectStorageException;

    void put(String bucket, String key, byte[] data) throws ObjectStorageException;

    byte[] get(String bucket, String key) throws ObjectStorageException;

    void delete(String bucket, String key) throws ObjectStorageException;

    String[] list(String bucket) throws ObjectStorageException;

    String[] list(String bucket, String prefix) throws ObjectStorageException;
}
